// Search a dictionary for a word by using a recursive binary search

if (the dictionary contains only one page)
    Scan the page for the word
else 
{
    open the dictionary to a piont near the middle
    Determine which half of the dictionary contains the word
    if (the word is in the first half of the dictionary)
        Search the first half of the dictionary for the word
    else 
        Search the second half of the dictionary for the word
}

//

search(aDictionary: Dictionary, word: string)

if(aDictionary is one page in size)
    scan the page for word
else 
{
    open aDictionary to a piont near the middle
    Determine which half of aDictionary contains word
    if (word is in the first half of aDictionary)
        search(first half of aDictionary, word)
    else 
        search(second half of aDictionary, word)
}